package com.neuedu.studentmanage.controller;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class RouterController {
	private Logger logger = Logger.getLogger(RouterController.class);

	// ++++++++++++++++学生登录++++++++++++++++++
	@GetMapping("/student")
	public String doIndex() {
		logger.info("=============index =============");
		return "/student/index";
	}

	// ++++++++++++++++老师登录++++++++++++++++++++++
	@GetMapping("/teacher")
	public String doTeacherIndex() {
		logger.info("=============teacherindex =============");
		return "/teacher/index";
	}

	// ++++++++++++++++管理员登录++++++++++++++++++++
	@GetMapping("/admin")
	public String doAdminIndex() {
		logger.info("=============adminindex =============");
		return "/admin/index";
	}
}
